package animal;

/*
 *  user:38917
 *  date:2025/5/5
 *  time:14:43
 */

public class Animal {
    //成员变量
    public String name = "父类名字";
    public String color = "父类颜色";
    public String age = "父类年龄";
    public String weight = "父类体重";
    //成员方法
    public void sleep(){
        System.out.println("父类的方法");
    }
    //构造方法
    public Animal(String name){
        this.name = name;
    }
    public Animal(){

    }
}
